Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear npcs before terrain and vehicles #78679

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

mqrause
Copy link
Contributor

@mqrause mqrause commented Dec 20, 2024

Summary

None

Purpose of change

GCC9, Curses, LTO test fails when clearing npcs.
https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/12429756955/job/34703884138?pr=78676#step:19:102

There were also rare older issues when npcs were underground. I'm not sure if those still happen, but they should be fixed by this, too.

Describe the solution

Simply swap clear_npcs and wipe_map_terrain in clear_map.

Describe alternatives you've considered

Testing

I couldn't easily find a reproduction case to test this, as it appears to be linked to compiling with LTO. But it seems to be guaranteed with that currently, so if it passes here it should be good?

Additional context

@github-actions github-actions bot added Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Dec 20, 2024
@Night-Pryanik Night-Pryanik merged commit 9d6f5ac into CleverRaven:master Dec 21, 2024
26 checks passed
@mqrause mqrause deleted the test_clear_fix branch December 21, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants